package com.finance.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: Apollo
 * @Date: 2021/4/16
 * @Description: 贷款产品信息附件
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "accessory_loan_product_info")
public class AccessoryLoanProductInfo implements Serializable {

    /**
     * 主键
     */
    private Integer id;

    /**
     * 标识
     */
    @TableId(type = IdType.ASSIGN_ID)
    @TableField(fill = FieldFill.INSERT)
    private String code;

    /**
     * 是否删除 1:否 2:是
     */
    private Integer isDelete;

    /**
     * 产品名称
     */
    private String name;

    /**
     * 贷款产品种类 1:信用贷 2:抵押贷
     */
    private Integer kind;

    /**
     * 最低借款额度
     */
    private Integer minBorrowing;

    /**
     * 最高借款额度
     */
    private Integer maxBorrowing;

    /**
     * 是否循环贷款 1:是 2:否
     */
    private Integer isRevolvingLoan;

    /**
     * 借款手续费 1:0.01 2:
     */
    private Integer serviceCharge;

    /**
     * 支持期数 1:3期 2:6期 3:12期
     */
    private Integer type;

    /**
     * 利率
     */
    private Integer interestRates;

    /**
     * 利率单位  1:日 2:月 3:年
     */
    private Integer interestRateUnits;

    /**
     * 融资企业
     */
    private String companyName;

    /**
     * 商业模式 1:自营贷 2:联合贷
     */
    private Integer model;

    /**
     * 投资比例
     */
    private Integer investmentProportions;

    /**
     * 收益比例
     */
    private Integer earningsRatios;

    /**
     * 放款时间 1:及时放款 2:24小时内
     */
    private Integer loanTime;

    /**
     * 预警间隔时间
     */
    private Integer warningInterval;

    /**
     * 预警间隔时间单位
     */
    private Integer warningIntervalUnit;

    /**
     * 逾期利率
     */
    private Integer overdueInterestRate;

    /**
     * 支持部分还款的类型 1:提前还款 2:按时还款
     */
    private Integer repaymentType;

    /**
     * 部分还款期数 1:1期 2:2期
     */
    private Integer partialRepaymentPeriod;

    /**
     * 部分还款比例
     */
    private Integer partialRepaymentRatio;

    /**
     * 收益比例
     */
    private Integer profitRateRatio;

    /**
     * 是否收取手续费
     */
    private Integer isCollectionOfServiceCharge;

    /**
     * 结算手续费
     */
    private Integer settlementCharge;

    /**
     * 申请贷款标识
     */
    private String applyForLoanCode;
    





    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CODE = "code";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_NAME = "name";

    public static final String COL_KIND = "kind";

    public static final String COL_MIN_BORROWING = "min_borrowing";

    public static final String COL_MAX_BORROWING = "max_borrowing";

    public static final String COL_IS_REVOLVING_LOAN = "is_revolving_loan";

    public static final String COL_SERVICE_CHARGE = "service_charge";

    public static final String COL_TYPE = "type";

    public static final String COL_INTEREST_RATES = "interest_rates";

    public static final String COL_INTEREST_RATE_UNITS = "interest_rate_units";

    public static final String COL_COMPANY_NAME = "company_name";

    public static final String COL_MODEL = "model";

    public static final String COL_INVESTMENT_PROPORTIONS = "investment_proportions";

    public static final String COL_EARNINGS_RATIOS = "earnings_ratios";

    public static final String COL_LOAN_TIME = "loan_time";

    public static final String COL_WARNING_INTERVAL = "warning_interval";

    public static final String COL_WARNING_INTERVAL_UNIT = "warning_interval_unit";

    public static final String COL_OVERDUE_INTEREST_RATE = "overdue_interest_rate";

    public static final String COL_REPAYMENT_TYPE = "repayment_type";

    public static final String COL_PARTIAL_REPAYMENT_PERIOD = "partial_repayment_period";

    public static final String COL_PARTIAL_REPAYMENT_RATIO = "partial_repayment_ratio";

    public static final String COL_PROFIT_RATE_RATIO = "profit_rate_ratio";

    public static final String COL_IS_COLLECTION_OF_SERVICE_CHARGE = "is_collection_of_service_charge";

    public static final String COL_SETTLEMENT_CHARGE = "settlement_charge";

    public static final String COL_APPLY_FOR_LOAN_CODE = "apply_for_loan_code";


}